import 'package:bookshelf/generated/json/base/json_convert_content.dart';
import 'package:bookshelf/entity/score_entity.dart';

ScoreEntity $ScoreEntityFromJson(Map<String, dynamic> json) {
	final ScoreEntity scoreEntity = ScoreEntity();
	final String? bookId = jsonConvert.convert<String>(json['book_id']);
	if (bookId != null) {
		scoreEntity.bookId = bookId;
	}
	final String? bookNo = jsonConvert.convert<String>(json['book_no']);
	if (bookNo != null) {
		scoreEntity.bookNo = bookNo;
	}
	final int? score = jsonConvert.convert<int>(json['score']);
	if (score != null) {
		scoreEntity.score = score;
	}
	return scoreEntity;
}

Map<String, dynamic> $ScoreEntityToJson(ScoreEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['book_id'] = entity.bookId;
	data['book_no'] = entity.bookNo;
	data['score'] = entity.score;
	return data;
}